fd = open('test2.txt', mode='w+', encoding='utf-8')
fd.write('hello world')
fd.flush()
content = fd.read()
print('content:', content)
fd.seek(1, 0)
print('content:', fd.read(2))
